package com.ps.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 药品组合药品关系
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SetmealMedicine implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    //药品组合id
    private Long setmealId;

    //药品id
    private Long medicineId;

    //药品名称 （冗余字段）
    private String name;

    //药品原价
    private BigDecimal price;

    //份数
    private Integer copies;
}
